package com.ph.monitorPlatform.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.util.Date;


@Data
public class TaskInfoExportDto {

    @ExcelProperty(value = "序号", index = 0)
    private Integer taskId;

    @ExcelProperty(value = "巡检区域", index = 1)
    private String ascription;

    @ExcelProperty(value = "任务类型", index = 2)
    private String taskType;

    @ExcelProperty(value = "任务名称", index = 3)
    private String taskName;

    @DateTimeFormat("yyyy/MM/dd")
    @ExcelProperty(value = "计划巡检日期", index = 4)
    private Date planStartTime;

    @ExcelProperty(value = "计划执行时间", index = 5)
    private String planTime;

    @ExcelProperty(value = "任务单状态", index = 6)
    private String taskStatus;

    @ExcelProperty(value = "是否异常", index = 7)
    private String taskState;

    @ExcelProperty(value = "执行人", index = 8)
    private String transactorName;

    @ExcelProperty(value = "是否延迟开始", index = 9)
    private String isDelay;

    @DateTimeFormat("HH:mm:ss")
    @ExcelProperty(value = "实际开始时间", index = 10)
    private Date realStartTime;

    @DateTimeFormat("HH:mm:ss")
    @ExcelProperty(value = "实际结束时间", index = 11)
    private Date realEndTime;

    @ExcelProperty(value = "是否是默认执行人执行", index = 12)
    private String isDfTransactor;

    @ExcelProperty(value = "默认执行人", index = 13)
    private String dfTransactorName;

    @ExcelIgnore
    private Date planEndTime;

}
